-- GENERATED SPELL FOR [Bile Sludge] --


function spell0_16142(pUnit, Event) --@Clone,Self--
pUnit:FullCastSpellOnTarget(27890,pUnit)
pUnit:RegisterEvent('Sorts_16142', 2500, 1)
end

function Sorts_16142(pUnit, Event)
local choix_sorts_16142 = math.random(0, 0)
if choix_sorts_16142 == 0 then
pUnit:RegisterEvent('spell0_16142', 1, 1)
end
end

function mob16142_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16142', math.random(1500, 3000), 1)
end

function mob16142_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16142_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16142_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16142, 1, 'mob16142_Action')
RegisterUnitEvent(16142, 2, 'mob16142_Leave')
RegisterUnitEvent(16142, 3, 'mob16142_Kill')
RegisterUnitEvent(16142, 4, 'mob16142_Die')
